package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.LogininfoBean;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface PassWordLoginContract {
    interface Model {
        Flowable<LogininfoBean> passWordLogin(String mobile, String pwd);

    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onPassWordLoginSuccess(LogininfoBean bean);
    }

    interface Presenter {
        /**
         *
         */
        void passWordLogin(String mobile, String pwd);
    }
}
